package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.commit.R;
import com.itheima.dto.DishDto;
import com.itheima.pojo.Dish;

import java.util.List;


public interface DishService extends IService<Dish> {
    R<String> add(DishDto dishDto);
    R<IPage> selectP(Integer page , Integer pageSize,String name);
    R<DishDto> get(Long id);
    R<String> update(DishDto dishDto);
    R<String> upda(int s,Long[] ids);
    R<String> delete(Long[] ids);
    R<List<DishDto>> list(Dish dish);
}
